package com.ruoyi.trade.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 t_trade
 * 
 * @author ruoyi
 * @date 2023-11-03
 */
public class Trade extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private BigDecimal tradeAccount;

    /** 交易类型(1充值，2提现) */
    @Excel(name = "交易类型(1充值，2提现)")
    private Long tradeType;

    /** 交易编号 */
    @Excel(name = "交易编号")
    private Long tradeNo;

    /** 交易卡号 */
    @Excel(name = "交易卡号")
    private Long bankNumber;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tradeTime;

    /** 交易状态(0已创建 1 已完成 2已取消 ) */
    @Excel(name = "交易状态(0已创建 1 已完成 2已取消 )")
    private Long tradeState;

    /** 删除状态(0正常  1删除) */
    @Excel(name = "删除状态(0正常  1删除)")
    private Long delTag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTradeAccount(BigDecimal tradeAccount) 
    {
        this.tradeAccount = tradeAccount;
    }

    public BigDecimal getTradeAccount() 
    {
        return tradeAccount;
    }
    public void setTradeType(Long tradeType) 
    {
        this.tradeType = tradeType;
    }

    public Long getTradeType() 
    {
        return tradeType;
    }
    public void setTradeNo(Long tradeNo) 
    {
        this.tradeNo = tradeNo;
    }

    public Long getTradeNo() 
    {
        return tradeNo;
    }
    public void setBankNumber(Long bankNumber) 
    {
        this.bankNumber = bankNumber;
    }

    public Long getBankNumber() 
    {
        return bankNumber;
    }
    public void setTradeTime(Date tradeTime) 
    {
        this.tradeTime = tradeTime;
    }

    public Date getTradeTime() 
    {
        return tradeTime;
    }
    public void setTradeState(Long tradeState) 
    {
        this.tradeState = tradeState;
    }

    public Long getTradeState() 
    {
        return tradeState;
    }
    public void setDelTag(Long delTag) 
    {
        this.delTag = delTag;
    }

    public Long getDelTag() 
    {
        return delTag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("tradeAccount", getTradeAccount())
            .append("tradeType", getTradeType())
            .append("tradeNo", getTradeNo())
            .append("bankNumber", getBankNumber())
            .append("tradeTime", getTradeTime())
            .append("tradeState", getTradeState())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delTag", getDelTag())
            .toString();
    }
}
